/* eslint-disable */
import Loading from "$root/components/Loading/index";
// simpleMask 简用遮罩
import simpleMask from "$root/components/Masks/mask/index.vue";
// simpleMask 简用遮罩
import oneMask from "$root/components/Masks/mask/index_two_level.vue";
import Message from "$root/components/Message/index";
// import style (<= Swiper 5.x)
import "swiper/css/swiper.css";
import { Button, Slider } from "vant";
import Vue from "vue";
import VueAwesomeSwiper from "vue-awesome-swiper";
import App from "./App";
import router from "./router";

// rem布局
document.documentElement.style.fontSize =
  Math.round((document.documentElement.offsetWidth / 750) * 100) + "px";

Vue.use(VueAwesomeSwiper /* { default options with global component } */)
  .use(Message)
  .use(Loading)
  .use(Button)
  .use(Slider);
Vue.config.productionTip = false;

// 当你的弹层内只有一层时，没有嵌套更多弹层的时候，可以直接使用oneMask，如果涉及多层，需要封装成组件时，请使用simpleMask
Vue.component("oneMask", oneMask);
Vue.component("simpleMask", simpleMask);
/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  template: "<App/>",
  components: { App }
});
